/*
 * @Author: delin66
 * @Date: 2024-12-09 18:00:15
 * @LastEditors: delin66
 * @LastEditTime: 2025-06-04 17:43:21
 * @Descripttion: 
 */

import request from '@/utils/request'
// 科技园新建入驻申请(迁入企业接口)
export function newImmigrantApplication(query) {
  return request({
    url: '/kjy/migrationenterprise',
    method: 'post',
    data: query,
  });
}

// 科技园获取入驻申请列表(迁入企业接口)
export function getImmigrantApplicationList(query){
  return request({
    url: '/kjy/migrationenterprise/list',
    method: 'get',
    params: query,
  });
}

// 科技园获取入驻申请详情(迁入企业接口)
export function getImmigrantApplicationDetail(id){
  return request({
    url: `/kjy/migrationenterprise/${id}`,
    method: 'get',
  });
}

// 科技园修改入驻申请(迁入企业接口)
export function editImmigrantApplication(query){
  return request({
    url: '/kjy/migrationenterprise',
    method: 'put',
    data: query,
  });
}

// 科技园删除入驻申请(迁入企业接口)
export function delImmigrantApplication(id) {
  return request({
    url: `/kjy/migrationenterprise/${id}`,
    method: 'delete',
  });
}


// 科技园新建入驻申请(初创企业接口)
export function NewEnterpriseApplication(query){
  return request({
    url: '/kjy/newEnterprise',
    method: 'post',
    data: query,
  });
}
// 科技园获取入驻申请列表(初创企业接口)
export function getEnterpriseApplicationList(query){
  return request({
    url: '/kjy/newEnterprise/list',
    method: 'get',
    params: query,
  });
}
// 科技园获取入驻申请详情(初创企业接口)
export function getEnterpriseApplicationDetail(id){
  return request({
    url: `/kjy/newEnterprise/${id}`,
    method: 'get',
  });
}
// 科技园修改入驻申请(初创企业接口)
export function editEnterpriseApplication(query){
  return request({
    url: '/kjy/newEnterprise',
    method: 'put',
    data: query,
  });
}

// 科技园删除入驻申请(初创企业接口)
export function delEnterpriseApplication(id) {
  return request({
    url: `/kjy/newEnterprise/${id}`,
    method: 'delete',
  });
}

// 众创空间入驻申请(学生,教师,团队,用type区分)
export function zcresidencyApplication(query) {
  return request({
    url: '/kjy/createSpace',
    method: 'post',
    data: query,
  });
}
//众创空间根据id获取入驻申请(学生和老师接口)
export function getApplicationFromId(id){
  return request({
    url: `/kjy/createSpace/${id}`,
    method: 'get',
  });
}
//众创空间修改入驻申请(学生和老师接口)
export function editApplication(query){
  return request({
    url: '/kjy/createSpace',
    method: 'put',
    data: query,
  });
}
//众创空间获取入驻申请列表(学生和老师接口)
export function getApplicationList(query){
  return request({
    url: '/kjy/createSpace/list',
    method: 'get',
    params: query,
  });
}
